<?php
namespace App\Domain\Order;

use App\Model\Order\OrderModel;
use App\Common\MyDomain;
use App\Model\Order\CommentModel;

class OrderDomain extends MyDomain {

    public function add($params = array()) {
        //\App\returnApiError('fail');
        /* $model = new JoggingModel();
        $data = $model->index();
        return $data; */
        //\App\showException(0, '运动记录不存在');
        //return 123;
        
        $oderModel = new OrderModel();
        $data = ['order_num' => '123'];
        $res = $oderModel->add($data);
        
        $commentModel = new CommentModel();
        $data = ['content' => '456'];
        $res = $commentModel->add($data);
        
        return $res;
        
    }
}
